<script>
	const p1 = {
		lastName: '张',
		firstName: '三',
		get fullName() {
			return `${this.lastName} ${this.firstName}`;
		},
	}
	const proxy = new Proxy(p1, {
		get(target, key, receiver) {
			console.log('getter', target, key, receiver)
			return Reflect.get(target, key, receiver)
			// return target[key]
		},
		set(target, key, value, receiver) {
			console.log('setter', target, key, value, receiver)
			return Reflect.set(target, key, value, receiver)
		}
	})
</script>